
<%@ page import="duylinh.CongNghe" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'congNghe.label', default: 'CongNghe')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-congNghe" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" action="list"><g:message code="default.list.congNghe.label" /></g:link></li>
				<li><g:link class="create" action="createEditCongNghe">
                    <g:message code="default.new.congNghe.label" />
                </g:link></li>
			</ul>
		</div>
		<div id="show-congNghe" class="content scaffold-show" role="main">


			<div class="marginBottomLarge marginLeftLarge marginTopLarge quoteBig">
                <g:message code="default.show.label" args="[congNgheInstance?.ten]" />
            </div>


			<g:if test="${flash.message}">
			        <div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list congNghe">

                <g:if test="${congNgheInstance?.ten}">
                    <li class="fieldcontain">
                        <span id="ten-label" class="property-label"><g:message code="congNghe.ten.label" default="Ten" /></span>

                        <span class="property-value" aria-labelledby="ten-label"><g:fieldValue bean="${congNgheInstance}" field="ten"/></span>

                    </li>
                </g:if>


			
				<g:if test="${congNgheInstance?.dinhMucSP}">
				<li class="fieldcontain">
					<span id="dinhMucSP-label" class="property-label"><g:message code="congNghe.dinhMucSP.label" default="Dinh Muc SP" /></span>
					
						<span class="property-value" aria-labelledby="dinhMucSP-label">
                            <g:fieldValue bean="${congNgheInstance}" field="dinhMucSP"/>
                            <g:fieldValue bean="${congNgheInstance}" field="dinhmucSPDonvi"/> / 1 Kg
                        </span>
					
				</li>
				</g:if>


				<g:if test="${congNgheInstance?.nguyenCongs}">
                    <li class="fieldcontain">
                        <span id="nguyenCongs-label" class="property-label"><g:message code="congNghe.nguyenCongs.label" default="Nguyen Congs" /></span>

                        <table class="property-value" aria-labelledby="nguyenCongs-label">
                            <g:each in="${congNgheInstance.nguyenCongs}" var="n" status="i">
                                <tr>
                                    <td>
                                        ${i+1}.
                                    </td>
                                    <td>
                                        <g:link controller="nguyenCong" action="show" id="${n.id}">
                                             ${n?.ten?.encodeAsHTML()}
                                        </g:link>
                                    </td>

                                    <td>
                                        ${n?.toSanXuat?.ten?.encodeAsHTML()}
                                    </td>

                                    <td>
                                        ${n?.may?.encodeAsHTML()}
                                    </td>

                                    <td>
                                        ${n?.khuanGa?.encodeAsHTML()}
                                    </td>

                                </tr>
                            </g:each>

                        </table>


                    </li>
				</g:if>
			
				<g:if test="${congNgheInstance?.sanluongTB}">
				<li class="fieldcontain">
					<span id="sanluongTB-label" class="property-label">
                        <g:message code="congNghe.sanluongTB.label" default="Sanluong TB" />
                    </span>
					
				    <span class="property-value" aria-labelledby="sanluongTB-label">
                        <g:fieldValue bean="${congNgheInstance}" field="sanluongTB"/>
                        <g:if test="${congNgheInstance?.sanluongTBDv}">
                            <g:fieldValue bean="${congNgheInstance}" field="sanluongTBDv"/>
                        </g:if>
                    </span>
					
				</li>
				</g:if>
			

			
				<g:if test="${congNgheInstance?.tyLeThanhPham}">
				<li class="fieldcontain">
					<span id="tyLeThanhPham-label" class="property-label"><g:message code="congNghe.tyLeThanhPham.label" default="Ty Le Thanh Pham" /></span>
					
						<span class="property-value" aria-labelledby="tyLeThanhPham-label"><g:fieldValue bean="${congNgheInstance}" field="tyLeThanhPham"/> %</span>
					
				</li>
				</g:if>


                <g:if test="${congNgheInstance?.leadtime}">
                    <li class="fieldcontain">
                        <span id="leadtime-label" class="property-label"><g:message code="congNghe.leadtime.label" default="Leadtime" /></span>

                        <span class="property-value" aria-labelledby="leadtime-label"><g:fieldValue bean="${congNgheInstance}" field="leadtime"/></span>

                    </li>
                </g:if>


                <g:if test="${congNgheInstance?.dateCreated}">
                    <li class="fieldcontain">
                        <span id="dateCreated-label" class="property-label"><g:message code="congNghe.dateCreated.label" default="Date Created" /></span>

                        <span  class="property-value" aria-labelledby="dateCreated-label">${congNgheInstance?.creator?.ten}</span>

                        <span class="property-value" aria-labelledby="dateCreated-label">
                            <g:formatDate date="${congNgheInstance?.dateCreated}" />
                        </span>

                    </li>
                </g:if>

                <g:if test="${congNgheInstance?.lastUpdated}">
                    <li class="fieldcontain">

                        <span id="lastUpdated-label" class="property-label"><g:message code="congNghe.lastUpdated.label" default="Last Updated" /></span>

                        <span  class="property-value" aria-labelledby="dateCreated-label">${congNgheInstance?.creator?.ten}</span>

                        <span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${congNgheInstance?.lastUpdated}" /></span>

                    </li>
                </g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${congNgheInstance?.id}" />
					<g:link class="edit" action="createEditCongNghe" params="['congNgheId':congNgheInstance?.id]"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
